import { Service, Inject } from 'typedi';
import { res } from '@/utils/jsonResult';
import { LinkService } from '../LinkService';
import { Link } from '@/entity/Link';
import { LinkDao } from '@/dao/LinkDao';

@Service()
export class LinkServiceImpl implements LinkService {

    @Inject()
    linkDao!: LinkDao

    async GetAllLink(): Promise<res<Link[]>> {
        return this.linkDao.GetAllLink();
    }

}